package com.jiuyi.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.jiuyi.entity.Category;
import com.jiuyi.entity.Employee;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * DATA: 2022/10/19
 * Author: 晨夕
 */
@Mapper
public interface CategoryMapper extends BaseMapper<Category> {
    //查询分类
    List<Category> selectCategoryList(@Param("page") int page,@Param("pageSize") int pageSize);
    //查询分类个数
    int selectCategoryCount();
    //查看分类是否存在
    int selectNameIsExist(@Param("name")String name,@Param("id") Long id);
    //查看分类列表
    List<Category> selectCategoryLists();
    //根据id查分类名
    String selectByCategoryId(@Param("categoryId")Long categoryId);
}
